
#########################################################################

# Copyright (C) Flavio Piccinelli 2012 <flavio.picci@gmail.com>

#########################################################################

# const.rb
# This file is part of "AriaAperta".

# AriaAperta is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# AriaAperta is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with AriaAperta.  If not, see <http://www.gnu.org/licenses/>.

#########################################################################
#########################################################################


#path to databases
DB_PATH = "/var/lib/one/"
#path to certificates
CERT_PATH = "/home/flavio/Desktop/tlsvnc/certtool/"

LIST_PORT = 9000
TIME_OUT = 60*60
CLONE = "no"
HOST_NUM = 2

#pool ids
HOSTS = 0
IMGS  = 1
USERS = 2
VMS   = 3

#host states
INIT     = 0
MONITED  = 1
MONITING = 2
ERROR    = 3
DISABELD = 4

#vm states
# INIT      = 0
PRNDING   = 1
HOLD      = 2
ACTIVE    = 3
STOPPED   = 4
SUSPENDED = 5
DONE      = 6
FAILED    = 7

#lcm states
PROLOG         = 1
BOOT           = 2
RUNNING        = 3
MIGRATE        = 4
SAVE_STOP      = 5
SAVE_SUSPEND   = 6
SAVE_MIGRATE   = 7
PROLOG_MIGRATE = 8
PROLOG_RESUME  = 9
EPILOG_STOP    = 10
EPILOG         = 11
SHUTDOWN       = 12
CANCEL         = 13
FAILURE        = 14
CLEANUP        = 15
UNKNOWN        = 16

